# 统计重复字符

def wordcount(str):
    strDict = {}
    for s in str:
        if strDict.get(s) is None:
            strDict[s] = 1
        else:
            strDict[s] = int(strDict.get(s)) + 1
    print(strDict)


if __name__ == "__main__":
    wordcount(input("请输入一串字符:\n"))
